﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.ArticleCategorys.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.ArticleCategorys
{
    /// <summary>
    /// 文章类别服务接口
    /// </summary>
    public interface IArticleCategoryAppService : IApplicationService
    {
        #region 实体的自定义扩展方法

        /// <summary>
        /// 获取文章分类
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<ArticleCategoryListDto>> GetArticleCategory();

        /// <summary>
        /// 获取全部地区树形数据
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetArticleCategoryTree();

        #endregion

        #region 文章类别管理

        /// <summary>
        /// 根据查询条件获取文章类别分页列表
        /// </summary>
        Task<PagedResultDto<ArticleCategoryListDto>> GetPagedArticleCategorysAsync(GetArticleCategoryInput input);

        /// <summary>
        /// 通过Id获取文章类别信息进行编辑或修改 
        /// </summary>
        Task<GetArticleCategoryForEditOutput> GetArticleCategoryForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取文章类别ListDto信息
        /// </summary>
        Task<ArticleCategoryListDto> GetArticleCategoryByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改文章类别
        /// </summary>
        Task CreateOrUpdateArticleCategoryAsync(CreateOrUpdateArticleCategoryInput input);





        /// <summary>
        /// 新增文章类别
        /// </summary>
        Task<ArticleCategoryEditDto> CreateArticleCategoryAsync(ArticleCategoryEditDto input);

        /// <summary>
        /// 更新文章类别
        /// </summary>
        Task UpdateArticleCategoryAsync(ArticleCategoryEditDto input);

        /// <summary>
        /// 删除文章类别
        /// </summary>
        Task DeleteArticleCategoryAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除文章类别
        /// </summary>
        Task BatchDeleteArticleCategoryAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取文章类别信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetArticleCategoryToExcel();

        #endregion

    }
}
